package J20241107_difference;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 差分
 * User: 王圆豪
 * Date: 2024-11-07
 * Time: 13:59
 */
public class Difference {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n + 1];
        for (int i = 1; i < n + 1; i++) {
            arr[i] = sc.nextInt();
        }
        int l = sc.nextInt();
        int r = sc.nextInt();
        int c = sc.nextInt();

        arr[l] += c;
        arr[r + 1] -= c;
    }
}
